package com.heaven.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heaven.pojo.Maps;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MapMapper extends BaseMapper<Maps> {
    List<Maps> addressList(@Param("size") int size,
                           @Param("startNum") int startNum,
                           @Param("query") String query);

    long findAddressList(String query);

    @Delete("delete from map where id=#{id}")
    void deleteAddre(Integer id);
}
